#ifndef UTILITIES_H
#define UTILITIES_H

#include <QObject>

class Utilities : QObject
{
    Q_OBJECT
public:
    explicit Utilities(QObject *parent = nullptr);

    QString GetBit(int x, int y);
    char Char2Hex(char ch);
    void String2Hex(QString str,QByteArray &buf);
    uint8_t check_sum(uint8_t *buf,int leng);

};

#endif // UTILITIES_H
